<h1>Create an Account</h1>

<fieldset>
    <legend>Personal Information</legend>
    <?php
    echo form_open('login/create_member');
    echo form_input('first_name', set_value('first_name', 'First Name'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'First Name\':this.value;"');
    echo form_input('last_name', set_value('last_name', 'Last Name'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Last Name\':this.value;"');
    echo form_input('email_address', set_value('email_address', 'Email Address'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Email Address\':this.value;"');
    ?>
</fieldset>

<fieldset>
    <legend>Login Info</legend>
    <?php
    echo form_input('username', set_value('username', 'Username'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Username\':this.value;"');
    echo form_input('password', set_value('password', 'Password'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Password\':this.value;"');
    echo form_input('password2', set_value('password2', 'Password Confirm'), 'onClick="this.value=\'\'"; onblur="this.value=!this.value?\'Password Confirm\':this.value;"');

    echo form_submit('submit', 'Create Account');
    ?>

    <?php
    echo validation_errors('<p class="error">');
    ?>
</fieldset>